package com.kehutong.charge.entity;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.sql.Timestamp;

/**
 * @program: kht
 * @description: 仪表管理
 * @author: joneron
 * @create: 2021/6/21
 **/
@Table(value="t_charge_meter_manage", comment="仪表管理表",multi = true, idType = IDType.TIMESTAMP, engine = "innodb")
public class MeterManage extends DataEntity {

    private static final long serialVersionUID = 5845670259068657116L;

    protected MeterManage(String id) {
        super(id);
    }

    @Column(comment="仪表编号")
    private String meterNo;

    @Column(comment="小区编号")
    private String communityNo;

    @Column(comment="小区名称")
    private String communityName;

    @Column(comment="房号")
    private String houseNo;

    @Column(comment="仪表类型ID")
    private String meterTypeNo;

    @Column(comment="仪表类型名称")
    private String meterTypeName;

    @Column(comment="仪表分类ID")
    private String meterClassifyNo;

    @Column(comment="仪表分类名称")
    private String meterClassifyName;

    @Column(comment="仪表地址")
    private String meterAddress;

    @Column(defValue = "NOT NULL default '1' ", comment = "状态：0禁用，1启用")
    private boolean status;

    @Column(comment="排序")
    private String sort;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    @Column(comment = "编辑人")
    private String updateName;

    @Column(comment = "编辑时间")
    private Timestamp editTime;

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public Timestamp getEditTime() {
        return editTime;
    }

    public void setEditTime(Timestamp editTime) {
        this.editTime = editTime;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getMeterTypeName() {
        return meterTypeName;
    }

    public void setMeterTypeName(String meterTypeName) {
        this.meterTypeName = meterTypeName;
    }

    public String getMeterClassifyName() {
        return meterClassifyName;
    }

    public void setMeterClassifyName(String meterClassifyName) {
        this.meterClassifyName = meterClassifyName;
    }

    public String getMeterNo() {
        return meterNo;
    }

    public void setMeterNo(String meterNo) {
        this.meterNo = meterNo;
    }

    public String getMeterClassifyNo() {
        return meterClassifyNo;
    }

    public void setMeterClassifyNo(String meterClassifyNo) {
        this.meterClassifyNo = meterClassifyNo;
    }

    public String getMeterTypeNo() {
        return meterTypeNo;
    }

    public void setMeterTypeNo(String meterTypeNo) {
        this.meterTypeNo = meterTypeNo;
    }

    public String getMeterAddress() {
        return meterAddress;
    }

    public void setMeterAddress(String meterAddress) {
        this.meterAddress = meterAddress;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCommunityNo() {
        return communityNo;
    }

    public void setCommunityNo(String communityNo) {
        this.communityNo = communityNo;
    }

    public String getHouseNo() {
        return houseNo;
    }

    public void setHouseNo(String houseNo) {
        this.houseNo = houseNo;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
}
